package fr.uniscol.siecle.model;

import java.io.Serializable;

public class OptionObligatoire implements Serializable, DonneeSiecle {

	private MEF mef = null;
	
	private Matiere matiere = null;
	
	private int rang = 0;

	public OptionObligatoire() {
		super();
	}

	public OptionObligatoire(MEF mef, Matiere matiere) {
		super();
		this.mef = mef;
		this.matiere = matiere;
	}

	public MEF getMef() {
		return mef;
	}

	public void setMef(MEF mef) {
		this.mef = mef;
	}

	public Matiere getMatiere() {
		return matiere;
	}

	public void setMatiere(Matiere matiere) {
		this.matiere = matiere;
	}

	public int getRang() {
		return rang;
	}

	public void setRang(int rang) {
		this.rang = rang;
	}

	@Override
	public boolean equals(Object obj) {
		OptionObligatoire o = (OptionObligatoire)obj;
		return getMef().equals(o.getMef()) && getMatiere().equals(o.getMatiere());
	}
}
